<?php

use App\Services\SystemConfigService;

if (! function_exists('system_config')) {
    function system_config(string $key, $default = null)
    {
        return app(SystemConfigService::class)->getConfig($key, $default);
    }
}

if (! function_exists('system_config_group')) {
    function system_config_group(string $groupName)
    {
        return app(SystemConfigService::class)->getConfigByGroup($groupName);
    }
}
